package com.example.mongodbdemo.services;

import com.example.mongodbdemo.entity.User;

import java.util.List;
import java.util.Optional;

public interface UserService {
   public void createUser(User user);
   public List<User> getUser();
   public Optional<User> findById(String id);
   public User update(User user, String l);
   public void deleteUserById(String id);
   public User updatePartially(User user, String id);
}